e7304d2c0975d375748265b0e2ca360bd8354bda,src/jane/core/map/ConcurrentLRUMap.java,ConcurrentLRUMap,put,#K#V#,103

Before Change


	{
		if(value == null) return null;
		CacheEntry<K, V> cacheEntryOld = map.put(key, new CacheEntry<>(key, value, versionCounter.incrementAndGet()));
		int curSize = (cacheEntryOld != null ? size.get() : size.incrementAndGet());
		if(curSize > upperSize && !sweepStatus.get())
			sweep();
		return cacheEntryOld != null ? cacheEntryOld.value : null;

After Change


		if(value == null)
			return null;
		CacheEntry<K, V> ceOld = map.put(key, new CacheEntry<>(key, value, versionCounter.incrementAndGet()));
		if(ceOld != null)
			return ceOld.value;
		if(size.incrementAndGet() > upperSize && !sweepStatus.get())
			sweep();
		return null;
	}